package com.autumn.config.entities;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.autumn.mybatis.mapper.annotation.TableOrderBy;

/**
 * 应用连接
 * 
 * @author 老码农
 *         <p>
 *         Description
 *         </p>
 * @date 2017-12-30 21:46:11
 */
@Entity
@Table(name = "app_info_connection")
@TableOrderBy(value = "appId ASC,sortId ASC")
public class ApplicationConnection extends AbstractConfigureModifiedGmt implements IAppConfigureDefaultEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8340072533224172727L;

	private Long appId;
	private Long connectionId;
	private String identity;
	private boolean isDefault;

	/**
	 * 获取应用Id
	 * 
	 * @return
	 */
	public Long getAppId() {
		return appId;
	}

	/**
	 * 设置应用Id
	 * 
	 * @param appId
	 *            应用Id
	 */
	public void setAppId(Long appId) {
		this.appId = appId;
	}

	/**
	 * 获取连接id
	 * 
	 * @return
	 */
	public Long getConnectionId() {
		return connectionId;
	}

	/**
	 * 设置连接id
	 * 
	 * @param connectionId
	 *            连接id
	 */
	public void setConnectionId(Long connectionId) {
		this.connectionId = connectionId;
	}

	/**
	 * 获取标识
	 * 
	 * @return
	 */
	public String getIdentity() {
		return identity;
	}

	/**
	 * 设置标识
	 * 
	 * @param identity
	 *            标识
	 */
	public void setIdentity(String identity) {
		this.identity = identity;
	}

	/**
	 * 获取是否默认
	 * 
	 * @return
	 */
	@Override
	public boolean getIsDefault() {
		return isDefault;
	}

	/**
	 * 设置是否默认
	 * 
	 * @param isDefault
	 *            是否默认
	 */
	@Override
	public void setIsDefault(boolean isDefault) {
		this.isDefault = isDefault;
	}
}
